package cn.zc.curriculum.service.service;


import cn.zc.curriculum.entity.Dto.QuestionOptionDto;
import cn.zc.curriculum.entity.QuestionOption;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 题目选项 服务类
 * </p>
 *
 * @author keno
 * @since 2022-02-14
 */
public interface QuestionOptionService extends IService<QuestionOption> {

    /**
     * 创建题目选项
     * @param questionOption
     * @return
     */
    boolean createQuestionOption(QuestionOption questionOption);

    /**
     * 修改题目选项
     * @param option
     * @return
     */
    boolean updateQuestionOption(QuestionOption option);

    /**
     * 根据题删除其选项
     * @param id
     */
    void deleteQuestionOptionByBank(String id);

    /**
     * 查询题选项
     * @param id
     * @return
     */
    List<QuestionOptionDto> findQuestionOption(String id);
}
